<!DOCTYPE html>
<html lang="UTF-8" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="sidebar" class="col-sm-3 col-md-2 sidebar">
  <div class="tree">
    <ul style="padding-left:0px;" class="list-group">
      <li class="list-group-item tree-closed" >
        <a href="main.html"><i class="glyphicon glyphicon-dashboard"></i> 控制面板</a>
      </li>
      <li class="list-group-item tree-closed">
        <span><i class="glyphicon glyphicon glyphicon-tasks"></i> 权限管理 <span class="badge" style="float:right">3</span></span>
        <ul style="margin-top:10px;display:none;">
<!--          <li style="height:30px;">-->
<!--            <a th:href="@{/fundingadmin/t-admin/admin/query/for/search}"><i class="glyphicon glyphicon-user"></i> 用户维护</a>-->
<!--          </li>-->
          <li sec:authorize="hasAnyAuthority('user:get')" style="height:30px;">
            <a th:href="@{/fundingadmin/t-admin/admin/query/for/search}"><i class="glyphicon glyphicon-user"></i> 用户维护</a>
          </li>
<!--          <li style="height:30px;">-->
<!--            <a th:href="@{/role/to/page.html}"><i class="glyphicon glyphicon-king"></i> 角色维护</a>-->
<!--          </li>-->
          <li sec:authorize="hasAnyAuthority('role:get')" style="height:30px;">
            <a th:href="@{/role/to/page.html}"><i class="glyphicon glyphicon-king"></i> 角色维护</a>
          </li>
          <li style="height:30px;">
            <a th:href="@{/fundingadmin/menu/to/page.html}"><i class="glyphicon glyphicon-lock"></i> 菜单维护</a>
          </li>
          <li style="height:30px;">
            <a href="permission.html"><i class="glyphicon glyphicon-lock"></i> 许可维护</a>
          </li>
        </ul>
      </li>
      <li class="list-group-item tree-closed">
        <span><i class="glyphicon glyphicon-ok"></i> 业务审核 <span class="badge" style="float:right">3</span></span>
        <ul style="margin-top:10px;display:none;">
          <li style="height:30px;">
            <a href="auth_cert.html"><i class="glyphicon glyphicon-check"></i> 实名认证审核</a>
          </li>
          <li style="height:30px;">
            <a href="auth_adv.html"><i class="glyphicon glyphicon-check"></i> 广告审核</a>
          </li>
          <li style="height:30px;">
            <a href="auth_project.html"><i class="glyphicon glyphicon-check"></i> 项目审核</a>
          </li>
        </ul>
      </li>
      <li class="list-group-item tree-closed">
        <span><i class="glyphicon glyphicon-th-large"></i> 业务管理 <span class="badge" style="float:right">7</span></span>
        <ul style="margin-top:10px;display:none;">
          <li style="height:30px;">
            <a href="cert.html"><i class="glyphicon glyphicon-picture"></i> 资质维护</a>
          </li>
          <li style="height:30px;">
            <a href="type.html"><i class="glyphicon glyphicon-equalizer"></i> 分类管理</a>
          </li>
          <li style="height:30px;">
            <a href="process.html"><i class="glyphicon glyphicon-random"></i> 流程管理</a>
          </li>
          <li style="height:30px;">
            <a href="advertisement.html"><i class="glyphicon glyphicon-hdd"></i> 广告管理</a>
          </li>
          <li style="height:30px;">
            <a href="message.html"><i class="glyphicon glyphicon-comment"></i> 消息模板</a>
          </li>
          <li style="height:30px;">
            <a href="project_type.html"><i class="glyphicon glyphicon-list"></i> 项目分类</a>
          </li>
          <li style="height:30px;">
            <a href="tag.html"><i class="glyphicon glyphicon-tags"></i> 项目标签</a>
          </li>
        </ul>
      </li>
      <li class="list-group-item tree-closed" >
        <a href="param.html"><i class="glyphicon glyphicon-list-alt"></i> 参数管理</a>
      </li>
    </ul>
  </div>
</div>
<script type="text/javascript">
  $(function () {
    //侧边栏
    $(".list-group-item").click(function () {
      if ($(this).find("ul")) {
        $(this).toggleClass("tree-closed");
        if ($(this).hasClass("tree-closed")) {
          $("ul", this).hide("fast");
        } else {
          $("ul", this).show("fast");
        }
      }
    });
  });
</script>
</body>
</html>